﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FlexiCommerce.Components;
using System.Globalization;
using System.Text.RegularExpressions;

namespace FlexiCommerce.Web
{
    public interface IUrlParser
    {
        string BuildUrl(Category item);

        string BuildUrl(Category item, CultureInfo culture);

        string BuildUrl(Product item, CultureInfo culture);

        string BuildUrl(Product item);

        Category ParseCategory(string url);

        Category CurrentCategory { get; }

        Regex CategoryRegex { get; }

        int ParseCategoryIdentifier(string input);
    }
}
